package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Service
public class HelloService {
    private static final Logger logger = LoggerFactory.getLogger(HelloService.class);

    //@Value("${app.greeting}")
    private String greeting;

    public String getGreeting() {
        logger.info("Fetching greeting message");
        return greeting;
    }
}
